package custcare

import (
	"github.com/gin-gonic/gin"
	v1 "wave-admin/controller/v1"
	"wave-admin/middleware"
)

type SysUserRouter struct{}

func (s *SysUserRouter) InitSysUserRouter(Router *gin.RouterGroup) {
	sysUserRouterWithoutRecord := Router.Group("/sysuser")
	sysUserRouter := Router.Group("/sysuser").Use(middleware.Record())
	sysUserApi := v1.ApiGroupApp.CustCareGroup.SysUserApi
	{
		sysUserRouter.PUT("/sysuser/:id", sysUserApi.UpdateSysUser)
		sysUserRouter.PUT("/avatar/:id", sysUserApi.UpdateAvatar)
	}
	{
		sysUserRouterWithoutRecord.GET("/getList", sysUserApi.GetUserList)
	}
}
